package com.example.cloudauth.rest;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

@RestController
@RequestMapping("/user")
public class UserInfoController {

    @GetMapping("/me")
    public Principal get(Principal principal){
        System.out.println(principal);
        return principal;
    }

    public static void main(String[] args) {
        System.out.println(Long.MAX_VALUE);
        System.out.println("9223372036854775807".length());

    }
}
